package com.atguigu.yygh.cmn.client;

import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 86182
 */
@FeignClient(value = "service-cmn")
@Repository
public interface DictFeignClient {


    /**跟dictcode 和 value查询**/
    @GetMapping("admin/cmn/dict/getName/{dictCode}/{value}")
    public String getName(@PathVariable("dictCode") String dictCode,
                          @PathVariable("value") String value);

    /**根据value查询**/
    @GetMapping("admin/cmn/dict/getName/{value}")
    public String getName(@PathVariable("value") String value);
}
